var packJson = {
  domain: "https://happyfitonline.whochange.com/",          //【正式服】快乐健身接口域名地址
  sportDomain: "https://xcxty.whochange.com/shuibian_api/", //【正式服】运动数据接口域名地址
  openDomain: "https://open.36change.com",                  //【正式服】开放平台接口域名地址
  openDataDomain: "https://sportdata.opensporting.com",     //【正式服】开放平台(运动数据上传)接口域名地址

  // domain: "https://happyfit.whochange.com/",                //【测试服】快乐健身接口域名地址
  // sportDomain: "https://xcxcs.whochange.com/shuibian_api/", //【测试服】运动数据接口域名地址
  // openDomain: "https://admin.opensporting.com",             //【测试服】开放平台接口域名地址
  // openDataDomain: "http://47.106.120.194:8383",             //【测试服】开放平台(运动数据上传)接口域名地址

  resStatusKey: "status", //服务器返回的状态key
  resStatusKey1: "code", //服务器返回的状态key
  resMsgKey: "msg", //服务器返回的提示信息key  
  resStatus: {
    "ok": 200, //操作成功(ok)
    "empty": 202,
    "error": 404,
  }
};

function getPackage() {
  return packJson;
}

function setPackage(key, value) {
  packJson[key] = value;
}

function setDomain(value) {
  packJson["domain"] = value;
}

export default {
  getPackage,
  setPackage,
  setDomain,
}